package com.qf.android.huihui.model;

import com.qf.android.huihui.bean.DetailListBean;
import com.qf.android.huihui.model.impl.IDetailList;
import com.qf.android.huihui.utils.retrofit.RHttpClient;

import rx.Observable;

/**
 * Created by lx on 2017/1/6.
 */

public class DetailListModel implements IDetailList {
    @Override
    public Observable<DetailListBean> loadInfo() {
        // return RHttpClient.getService().getInformation(page, lastshowid);
        return RHttpClient.getService().getDetailList();
    }

    @Override
    public void loadData() {
        Observable<DetailListBean> information ;
    }




//    private RequestQueue queue;
//    private ArrayList<DetailListBean>  lists;
//    private ICallBack callback;
//
//    public DetailListModel(ICallBack callback) {
//        this.callback = callback;
//    }
//
//    @Override
//    public void loadData() {
//
//    }
//
//    @Override
//    public String loadDetail(String url, final Context context) {
//        queue= Volley.newRequestQueue(context);
//
//        lists = new ArrayList<>();
//        StringRequest request=new StringRequest(url, new Response.Listener<String>() {
//            @Override
//            public void onResponse(String response) {
//                    callback.getStr(response);
//            }
//
//        }, new Response.ErrorListener() {
//            @Override
//            public void onErrorResponse(VolleyError error) {
//                Toast.makeText(context, "加载失败", Toast.LENGTH_SHORT).show();
//            }
//        });
//        queue.add(request);
//
//        return null;
//    }
}
